package com.chzc.fm.duotin.bean.home;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/27.
 */
public class PodcastBean {


    /**
     * id : 1645208
     * real_name : 民谣在路上
     * is_v : 1
     * image_url : http://c3.duotin.com/i1/DT/Vc52m0t6mwsISQqeVoLsAi94f8CAEpJ6mV3CHJa9FbI.jpg
     * followed_num : 20
     * is_followed : 0
     */

    private String id;
    private String real_name;
    private String is_v;
    private String image_url;
    private String followed_num;
    private int is_followed;

    public static PodcastBean objectFromData(String str) {

        return new Gson().fromJson(str, PodcastBean.class);
    }

    public static List<PodcastBean> arrayPodcastBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<PodcastBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getIs_v() {
        return is_v;
    }

    public void setIs_v(String is_v) {
        this.is_v = is_v;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getFollowed_num() {
        return followed_num;
    }

    public void setFollowed_num(String followed_num) {
        this.followed_num = followed_num;
    }

    public int getIs_followed() {
        return is_followed;
    }

    public void setIs_followed(int is_followed) {
        this.is_followed = is_followed;
    }
}
